package com.six.vo;

import java.sql.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 货主
 * 
 */
@Entity
@Table(name="WMS_T_CUSTOMER")
public class Customer {
	private int custID;// VARCHAR(16) 货主编号
	private String custName;// NVARCHAR2(60) 货主名称
	private String custIC;// VARCHAR(16) IC 卡号
	private String custICChip;// NVARCHAR2(60) IC 卡硬件编号
	private String custTel;// NVARCHAR2(60) 固话号码
	private String custMobile;// NVARCHAR2(60) 手机号码
	private String custSex;// VARCHAR(16) 性别
	private String custNote;// NVARCHAR2(512) 备注
	private Date custEditTime;// DATE 最后编辑时间
	private int custIsDel;// SMALLINT 是否已被删除
	private Set<Bill> bill;
	private Set<Transfer> transfer;
	private Set<CheckReport> checkReport;
	
	public Customer() {
		super();
	}
	public Customer(int custID, String custName, String custIC,
			String custICChip, String custTel, String custMobile,
			String custSex, String custNote, Date custEditTime, int custIsDel,
			Set<Bill> bill, Set<Transfer> transfer, Set<CheckReport> checkReport) {
		super();
		this.custID = custID;
		this.custName = custName;
		this.custIC = custIC;
		this.custICChip = custICChip;
		this.custTel = custTel;
		this.custMobile = custMobile;
		this.custSex = custSex;
		this.custNote = custNote;
		this.custEditTime = custEditTime;
		this.custIsDel = custIsDel;
		this.bill = bill;
		this.transfer = transfer;
		this.checkReport = checkReport;
	}
	@Id
	@GeneratedValue
	public int getCustID() {
		return custID;
	}
	public void setCustID(int custID) {
		this.custID = custID;
	}
	public String getCustName() {
		return custName;
	}
	public void setCustName(String custName) {
		this.custName = custName;
	}
	public String getCustIC() {
		return custIC;
	}
	public void setCustIC(String custIC) {
		this.custIC = custIC;
	}
	public String getCustICChip() {
		return custICChip;
	}
	public void setCustICChip(String custICChip) {
		this.custICChip = custICChip;
	}
	public String getCustTel() {
		return custTel;
	}
	public void setCustTel(String custTel) {
		this.custTel = custTel;
	}
	public String getCustMobile() {
		return custMobile;
	}
	public void setCustMobile(String custMobile) {
		this.custMobile = custMobile;
	}
	public String getCustSex() {
		return custSex;
	}
	public void setCustSex(String custSex) {
		this.custSex = custSex;
	}
	public String getCustNote() {
		return custNote;
	}
	public void setCustNote(String custNote) {
		this.custNote = custNote;
	}
	public Date getCustEditTime() {
		return custEditTime;
	}
	public void setCustEditTime(Date custEditTime) {
		this.custEditTime = custEditTime;
	}
	public int getCustIsDel() {
		return custIsDel;
	}
	public void setCustIsDel(int custIsDel) {
		this.custIsDel = custIsDel;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Bill> getBill() {
		return bill;
	}
	public void setBill(Set<Bill> bill) {
		this.bill = bill;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Transfer> getTransfer() {
		return transfer;
	}
	public void setTransfer(Set<Transfer> transfer) {
		this.transfer = transfer;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<CheckReport> getCheckReport() {
		return checkReport;
	}
	public void setCheckReport(Set<CheckReport> checkReport) {
		this.checkReport = checkReport;
	}
	
	

}
